/*
 *  Copyright 2023 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

@import (reference) '../../../../../styles/variables.less';

.ant-tag.ingestion-run-badge {
  display: flex;
  align-items: center;
  border-radius: @border-rad-md;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  height: 28px;
  width: 7px;
  padding: 0 2px;
  margin: 0;
  cursor: pointer;
  border: 1px solid;

  &.queued {
    background-color: @grey-9;
    border-color: @grey-19;
    color: @grey-19;
  }

  &.success {
    background-color: @green-9;
    border-color: @green-10;
    color: @green-10;
  }

  &.failed {
    background-color: @red-9;
    border-color: @red-10;
    color: @red-10;
  }

  &.running {
    background-color: @primary-button-background;
    border-color: @primary-heading-color;
    color: @primary-heading-color;
  }

  &.partialSuccess {
    background-color: @green-15;
    border-color: @green-14;
    color: @green-14;
  }

  &.paused {
    background-color: @yellow-10;
    border-color: @yellow-11;
    color: @yellow-11;
  }

  &.latest {
    width: fit-content;
    padding: @padding-xss 10px;
  }

  &.pipeline-status {
    border: 1px solid;
    gap: 4px;

    svg {
      font-size: 12px;
    }
  }
}
